package com.alvin.builder.msg;

import java.util.Date;

public abstract class MsgBuilder {
	protected Message message;
	
	protected abstract void createTitle();
	
	protected abstract void createBody();
	
	public void createFrom(String from) {
		message.setFrom(from);
	}
	
	public void createTo(String to) {
		message.setTo(to);
	}
	
	public void createDate() {
		message.setDate(new Date());
	}
	
	public void sengMsg() {
		message.send();
	}
}
